module.exports = {
  transpileDependencies: ['uview-ui'],
  devServer: {
    port: 8989,
    open: false,
    proxy: {
      '/api/': {
        target: 'http://dev.gateway.luban.p.yufeiworld.com',
        changeOrigin: true,
        logLevel: 'debug',
        pathRewrite: {
          '^/api/': ''
        }
      },
      '/up_load_api/': {
        target: 'http://dev.server.attach.componen.p.yufeiworld.com/',
        changeOrigin: true,
        logLevel: 'debug',
        pathRewrite: {
          '^/up_load_api/': ''
        }
      },
      '/base_api/': {
        target: 'http://dev.admin.basic.componen.p.yufeiworld.com/',
        changeOrigin: true,
        logLevel: 'debug',
        pathRewrite: {
          '^/base_api/': ''
        }
      },
      '/to_passport/': {
        target: 'https://dev-passport-cs-mall.tctm.life',
        changeOrigin: true,
        logLevel: 'debug',
        pathRewrite: {
          '^/to_passport/': ''
        }
      }
    }
  },
}
